<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="java.util.*,org.goldfish.jstl_playground.BookBean" %>
<%@ page import="java.time.LocalTime" %>
<!DOCTYPE html>
<html>
<head>
    <title>JSP - Hello World</title>
    <style>
        tr,td{
            border: 1px solid #000;
        }
    </style>
</head>
<body>
<h1><%= "Hello World!" %>
</h1>
<br/>
<table>
    <label><%=LocalTime.now()%></label>
    <tr>
        <td>#</td>
        <td>name</td>
        <td>price</td>
    </tr>
    <c:forEach
            var="book"
            items="${requestScope.books}"
            varStatus="status">
        <tr>
            <td>--</td>
            <td>${book.id}</td>
            <td>${book.name}</td>
            <td>${book.price}</td>
        </tr>
    </c:forEach>
    <a href="hello">refresh</a>
</table>

</body>
</html>